package ${package}.${moduleName}.entity.base;

import com.base.entity.BaseEntity;
<#list importList as i>
import ${i!};
</#list>

/**
 * @Description: <#if tableComment!?length gt 0>${tableComment}</#if>
 * @Author: ${author}
 * @Version: ${version}
 * @Date: ${datetime}
 */
public class ${ClassName}BaseEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private String tableName = "${tableName}"; //表名称

	<#list fieldList as field>
	<#if !field.baseField>
	private ${field.attrType} ${field.attrName}; <#if field.fieldComment!?length gt 0>//${field.fieldComment}</#if>
	</#if>
	</#list>

	<#list fieldList as field>
	<#if !field.baseField>
	/**
	 * @Description: <#if field.fieldComment!?length gt 0>获取${field.fieldComment}</#if>
	 * @Return: ${field.attrType}
	 */
	public ${field.attrType} get${field.methodName}() {
		return ${field.attrName};
	}

	/**
	 * @Description: <#if field.fieldComment!?length gt 0>设置${field.fieldComment}</#if>
	 * @Return: ${field.attrType}
	 */
	public void set${field.methodName}(${field.attrType} ${field.attrName}) {
		this.${field.attrName} = ${field.attrName};
	}

	</#if>
	</#list>
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

	/**
	 * @Description: 把对象属性转换成字符串
	 * @Return: String
	 */
	public String toString() {
		return "${ClassName}BaseEntity{" +
				<#list fieldList as field>
				"${field.attrName}='" + get${field.methodName}() + '\'' +
				</#list>
				'}';
	}
}
